const mongoose = require('mongoose');

mongoose.connect(
    "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/wuwei-group",
    {
        useNewUrlParser: true,
        useUnifiedTopology: true,
        auth: { authSource: "admin" }
    },
    () => {
        console.log("db is running...");
        require("./model/cinemas");
        require('./model/movies')
        require('./model/cinemas')
        require('./model/theaters')
        require('./model/schedules')
        require("./model/admins")
        require("./model/users")
        require("./model/seats")
        require('./model/indent')
        require('./model/seats')
        require('./model/seating')

}
);

